package com.epin.base.plugins;

import java.io.Serializable;

import com.epin.base.enums.commons.WebResultEnum;

public class AbstractBean implements Serializable{

	/** */
	private static final long serialVersionUID = 1L;
	
	private String status;
	
	private String message; 
	
	private Object data;

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	
	
	public AbstractBean() {
		super();
		this.status = WebResultEnum.OK.getVal();
		this.message = WebResultEnum.OK.getName();
		this.data = null;
	}

	public AbstractBean(String status, String message) {
		super();
		this.status = status;
		this.message = message;
	}
	
	public AbstractBean(WebResultEnum enumSvrResult){
		super();
		this.status = enumSvrResult.getVal();
		this.message = enumSvrResult.getName();
	}

	public AbstractBean(String status, String message, Object data) {
		super();
		this.status = status;
		this.message = message;
		this.data = data;
	}
	
}
